package com.block.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.block.db.entity.MemberLoginsession;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * 
 * @since 2020-07-04
 */
public interface MemberLoginsessionMapper extends BaseMapper<MemberLoginsession> {

    List<MemberLoginsession> getByUid(@Param("uid") Long uid);

    List<MemberLoginsession> getByUidAndStatus(@Param("uid")Long uid,@Param("status")String status);

    List<MemberLoginsession> getByUidAndStatusAndTypes(@Param("uid")Long uid,@Param("status")String status,@Param("loginType")String loginType);
}
